import 'package:flutter/material.dart';

class GMTagView extends StatelessWidget {
  final String text;
  final Color backgroundColor;
  final double borderRadius;
  final TextStyle? textStyle;

  const GMTagView({super.key, 
    required this.text,
    required this.backgroundColor,
    this.borderRadius = 8.0,
    this.textStyle,
  });

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: const EdgeInsets.symmetric(horizontal: 16.0, vertical: 8.0),
      decoration: BoxDecoration(
        color: backgroundColor,
        borderRadius: BorderRadius.circular(borderRadius),
      ),
      child: Center(
        child: Text(
          text,
          style: textStyle ?? const TextStyle(color: Colors.white, fontWeight: FontWeight.bold),
        ),
      ),
    );
  }
}
